#pragma once
#include <qglobal.h>

#include <QAbstractNativeEventFilter>
class Keyboard : public QAbstractNativeEventFilter {
public:
    Keyboard();
    void addHotKey(quint32 mod, quint32 key);

protected:
    bool nativeEventFilter(const QByteArray &eventType, void *message,
                           long *result) override;
};

class Worker {
    Worker() {}

public:
    static const Worker &getInstance();
    void record() const;
    void stopAndTransfer();
};
